From: Brion Vibber Date: Sun, 2 Apr 2006 03:57:51 +0000 (+0000) Subject: Live fix: profiling points for wikidiff2 X-Git-Tag: 1.6.0~75 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=4888b327db328efb2af50aee887148b52d5272a8;p=lhc%2Fweb%2Fwiklou.git Live fix: profiling points for wikidiff2 --- diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index 33c4df9214..beab95b4dd 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -367,10 +367,15 @@ CONTROL; # Better external diff engine, the 2 may some day be dropped # This one does the escaping and segmenting itself if ( !function_exists( 'wikidiff2_do_diff' ) ) { + wfProfileIn( "$fname-dl" ); @dl('php_wikidiff2.so'); + wfProfileOut( "$fname-dl" ); } if ( function_exists( 'wikidiff2_do_diff' ) ) { - return wikidiff2_do_diff( $otext, $ntext, 2 ); + wfProfileIn( 'wikidiff2_do_diff' ); + $text = wikidiff2_do_diff( $otext, $ntext, 2 ); + wfProfileOut( 'wikidiff2_do_diff' ); + return $text; } } if ( $wgExternalDiffEngine !== false ) {